// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.liuxinlong.modules.dao.UserTeamDao;
import com.liuxinlong.modules.entity.UserTeam;
import com.liuxinlong.modules.entity.UserTeam;
import com.liuxinlong.modules.mapper.UserTeamMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class UserTeamDaoImpl extends ServiceImpl<UserTeamMapper, UserTeam> implements UserTeamDao {

	@Override
	public List<UserTeam> pageTeamList(Map<String, Object> queryParam) {
		return baseMapper.pageTeamList(queryParam);
	}

	@Override
	public int getTeamCount(Map<String, Object> queryParam) {

		return baseMapper.getTeamCount(queryParam);
	}

	@Override
	public void addTeam(UserTeam role) {
		baseMapper.insert(role);
	}

	@Override
	public void updateTeam(UserTeam role) {
		baseMapper.updateById(role);
	}

	@Override
	public void deleteTeam(String roleId) {
		baseMapper.deleteById(roleId);
	}

	@Override
	public Map<String, Map<String, String>> getTeamMap() {
		return baseMapper.getTeamMap();
	}

	@Override
	public List<UserTeam> getTeamList() {
		return baseMapper.getTeamList();
	}

	@Override
	public Map<String, Map<String, String>> getTeamMapByName() {
		return baseMapper.getTeamMapByName();
	}

	@Override
	public UserTeam getTeamBySn(String sn) {
		return baseMapper.getTeamBySn(sn);
	}

}
